<%@ page import="cdu.javaendwork.model.sqlModel.User" %><%--
  Created by IntelliJ IDEA.
  User: zzz
  Date: 2023/1/2
  Time: 22:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员修改</title>
</head>
<body>

<%
    User user= (User) request.getAttribute("user");
%>
<form action="admin_mod" method="post" enctype="multipart/form-data">
    <input type="text" name="userid" value="<%=user.getId()%>" style="display: none"><br>

    管理员姓名：
    <input type="text" name="username" value="<%=user.getUsername()%>"><br>
    密码：
    <input type="text" name="password" value="<%=user.getPassword()%>"><br>
    电话：
    <input type="phone" name="phone" value="<%=user.getPhone()%>"><br>
    个人描述：
    <input type="userprofile" name="userprofile" value="<%=user.getUserprofile()%>"><br>
    头像：
    <input  value="<%=user.getPhoto()%>" disabled><br>

    修改头像<br>
    <input type="file" name="photo">
    <input type="submit" value="修 改">
    <input type="reset" value="重 置">
</form>
</body>
</html>
